﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AsyncroneModule
{
   /// <summary>
   /// Exception that is thrown when parsing failed
   /// </summary>
   [Serializable()]
   public class CouldNotParseException : System.Exception
   {
      /// <summary> 
      /// Basic could not parse exception 
      /// </summary>
      public CouldNotParseException() : base() { }
      
      /// <summary>
      /// Could not parse exception with custom message
      /// </summary>
      /// <param name="message"> Custom message describing the nature of the exception </param>
      public CouldNotParseException(string message) : base(message) { }
      
      /// <summary>
      /// Could not parse exception with custom message and inner
      /// </summary>
      /// <param name="message"> Custom message describing the nature of the exception </param>
      /// <param name="inner"> Inner exception </param>
      public CouldNotParseException(string message, System.Exception inner) : base(message, inner) {}

      /// <summary> Serializer </summary>
      protected CouldNotParseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) {}
   }
}
